package com.cloud.adrian.novel.book.dto.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * 小说章节发布 dto
 * @Author: xiangguiliang
 * @version: 1.0
 * @since: 2024/05/31
 */
@Data
public class ChapterAddReqDto {
    private Long id;
    private Long bookId;

    private Long authorId;

    @Schema(description = "章节名称")
    @NotBlank
    private String chapterName;

    @Schema(description = "章节内容")
    @NotBlank
    @Length(min = 50)
    private String chapterContent;

    @Schema(description = "是否收费 0:免费 1:收费")
    @NotNull
    private Integer isVip;
}
